package com.tianqi.familymap.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.tianqi.familymap.base.BaseFragment

class RecORWatchAdapter(private val fm: FragmentManager
                        , private val behavior:Int, private val mlist:ArrayList<BaseFragment>, private val mTitle:ArrayList<String>) : FragmentStatePagerAdapter(fm,behavior) {
    override fun getCount(): Int {
        return mlist.size
    }

    override fun getItem(position: Int): Fragment {
        return mlist[position]
    }

    override fun getPageTitle(position: Int): CharSequence? {
        return mTitle[position]
    }
}